﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Microsoft.AspNet.SignalR;
using Microsoft.AspNet.SignalR.Hubs;
using Microsoft.AspNet.SignalR.Infrastructure;
using Microsoft.Owin;

using Owin;

[assembly: OwinStartup(typeof(ZQNB.Web.Startup))]
namespace ZQNB.Web
{
    public partial class Startup
    {
        public void Configuration(IAppBuilder app)
        {
            ConfigureAuth(app);
            ConfigureSignalR(app);

            //var resolver = new DependencyResolverForSignalR();
            ////kernel.Bind(typeof(IHubConnectionContext<dynamic>))
            ////    .ToMethod(context => resolver.Resolve<IConnectionManager>()
            ////        .GetHubContext<StockTickerHub>().Clients)
            ////        .WhenInjectedInto<IStockTicker>();

            //var config = new HubConfiguration();
            //config.Resolver = resolver;
            //Microsoft.AspNet.SignalR.StockTicker.Startup.ConfigureSignalR(app, config);
        }
    }
}
